package com.blog;

import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.support.DaoSupport;

import com.blog.bean.User;
import com.blog.dao.IUserDao;
import com.sun.jmx.snmp.Timestamp;

/**
 * @className: Text
 * @description: 
 * @author: HCl
 * @createTime: 2020年5月27日 下午8:10:05
 */
public class Text {

	/**
	 * @param args
	 */
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Date d = new Date();
				//SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");	
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
				String sj = sdf.format(d);
			System.out.println(sj);
		try {
			FileUtils.writeStringToFile(new File("D:\\environment\\apache\\apache-tomcat-8.5.50\\webapps\\upload\\myblog\\001\\12.txt"), new String("abcde111给合法合规fg和g")) ;
			
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}
